﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using UserModels;
using UserModels.DTO;

namespace UserRepositorys.Intface
{
    public interface IUserRepository:IRepository<UserInfoModel> 
    {
        /// <summary>
        /// 添加用户
        /// </summary>
        /// <param name="userInfo"></param>
        /// <returns></returns>
        Task<int>AddUser(UserInfoModel userInfo);
        /// <summary>
        /// 查询全部用户
        /// </summary>
        /// <returns></returns>
        Task<List<UserDTO>> GetAllUsers();

        /// <summary>
        /// 用户登录
        /// </summary>
        /// <param name="UserAccount"></param>
        /// <param name="UserPass"></param>
        /// <returns></returns>
        Task<UserInfoModel> GetUserInfoById(string? UserAccount, string? UserPass);

        /// <summary>
        /// 删除用户信息
        /// </summary>
        /// <param name="UserId"></param>
        /// <returns></returns>
        Task<int>DeleteUser(int UserId);
    }
}
